import Vue from 'vue'
import VueRouter from 'vue-router'
import My from '../views/My.vue'
import Ding from '../views/Ding.vue'
import Fen from '../views/Fen.vue'
import Shou from '../views/Shou.vue'
import Zhou from '../views/second/Zhou.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/my',
    name: 'My',
    component: My
  },
  {
    path: '/ding',
    name: 'Ding',
    component: Ding
  },
  {
    path: '/fen',
    name: 'Fen',
    component: Fen,
    children:[{
      path: 'zhou',
      name: 'Zhou',
      component: Zhou,
    }]
  },
  {
    path: '/shou',
    name: 'Shou',
    component: Shou
  },
 
]

const router = new VueRouter({
  routes
})

export default router
